package be.kuleuven.cs.mume.objects;

import org.jbox2d.dynamics.BodyDef;
import org.jbox2d.dynamics.World;
import org.mt4j.util.math.Vector3D;

import processing.core.PApplet;
import advanced.physics.physicsShapes.PhysicsCircle;

public class PhysicsRing extends PhysicsCircle {

	public PhysicsRing(Vector3D centerPoint, float radius, PApplet applet, World world, float density, float friction, float restitution, float worldScale) {
		super(applet, centerPoint, radius, world, density, friction, restitution, worldScale);
	}
	
	@Override
	protected void bodyDefB4CreationCallback(BodyDef def) {
		super.bodyDefB4CreationCallback(def);
//		def.linearDamping = 0.15f;
		def.linearDamping =0.5f;
		//def.isBullet = true;
		//def.angularDamping = 0.05f;
		//def.allowSleep = true;
		def.fixedRotation = true;
	}

}
